package com.jwsoft.manager.common.enums;

/**
 * @Author zhiyuan
 * @Date 2023/2/28 16:55
 */
public enum  EduWorkTypeEnum {
    jjkdsh("0", "基教科待审核"),
    kzdsh("1", "科长待审核"),
    jsrydcl("2", "技术人员待处理"),
    clz("3", "处理中"),
    clwc("4", "处理完成"),

    ;

    private String type;
    private String name;

    EduWorkTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static EduWorkTypeEnum getByType(String type) {

        for (EduWorkTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
